export default {
  name: 'manual-price-list-table',
  props: {
    data: {
      type: Array,
      default: () => [],
    },
    total: {
      type: Number,
      default: 0,
    },
    pageNum: {
      type: Number,
      default: 1,
    },
    pageSize: {
      type: Number,
      default: 20,
    },
    loading: {
      type: Boolean,
      default: false,
    },
    cellularMap: {
      type: Map,
      default: () => new Map(),
    },
  },
  computed: {
    currentPage() {
      return this.pageNum;
    },
  },
  data() {
    return {
      row: null,
      goodsDetailVisible: false, //商品详情对话框
    };
  },
  methods: {
    onPageSizeChange(pageSize) {
      this.$emit('pageSizeChange', { pageSize: pageSize, pageNum: this.pageNum });
    },
    onPageNumChange(pageNum) {
      this.$emit('pageNumChange', { pageSize: this.pageSize, pageNum: pageNum });
    },
    onOpenGoodsDetailModal(row) {
      this.$emit('onOpenGoodsDetailModal', row);
    },
  },
  mounted() {},
};
